home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / widget / nsIBaseWindow.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  15KB  |  367 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIBaseWindow.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIBaseWindow_h__
  6. #define __gen_nsIBaseWindow_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsrootidl_h__
  14. #include "nsrootidl.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIWidget;
  22. typedef void * nativeWindow;
  23.  
  24.  
  25. /* starting interface:    nsIBaseWindow */
  26. #define NS_IBASEWINDOW_IID_STR "046bc8a0-8015-11d3-af70-00a024ffc08c"
  27.  
  28. #define NS_IBASEWINDOW_IID \
  29.   {0x046bc8a0, 0x8015, 0x11d3, \
  30.     { 0xaf, 0x70, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c }}
  31.  
  32. /**
  33.  * The nsIBaseWindow describes a generic window and basic operations that 
  34.  * can be performed on it.  This is not to be a complete windowing interface
  35.  * but rather a common set that nearly all windowed objects support.    
  36.  */
  37. class NS_NO_VTABLE nsIBaseWindow : public nsISupports {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBASEWINDOW_IID)
  41.  
  42.   /* [noscript] void initWindow (in nativeWindow parentNativeWindow, in nsIWidget parentWidget, in long x, in long y, in long cx, in long cy); */
  43.   NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) = 0;
  44.  
  45.   /* void create (); */
  46.   NS_IMETHOD Create(void) = 0;
  47.  
  48.   /* void destroy (); */
  49.   NS_IMETHOD Destroy(void) = 0;
  50.  
  51.   /* void setPosition (in long x, in long y); */
  52.   NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y) = 0;
  53.  
  54.   /* void getPosition (out long x, out long y); */
  55.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y) = 0;
  56.  
  57.   /* void setSize (in long cx, in long cy, in boolean fRepaint); */
  58.   NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint) = 0;
  59.  
  60.   /* void getSize (out long cx, out long cy); */
  61.   NS_IMETHOD GetSize(PRInt32 *cx, PRInt32 *cy) = 0;
  62.  
  63.   /* void setPositionAndSize (in long x, in long y, in long cx, in long cy, in boolean fRepaint); */
  64.   NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint) = 0;
  65.  
  66.   /* void getPositionAndSize (out long x, out long y, out long cx, out long cy); */
  67.   NS_IMETHOD GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) = 0;
  68.  
  69.   /** 
  70.      * Tell the window to repaint itself
  71.      * @param aForce - if true, repaint immediately
  72.      *                 if false, the window may defer repainting as it sees fit.
  73.      */
  74.   /* void repaint (in boolean force); */
  75.   NS_IMETHOD Repaint(PRBool force) = 0;
  76.  
  77.   /* [noscript] attribute nsIWidget parentWidget; */
  78.   NS_IMETHOD GetParentWidget(nsIWidget * *aParentWidget) = 0;
  79.   NS_IMETHOD SetParentWidget(nsIWidget * aParentWidget) = 0;
  80.  
  81.   /* attribute nativeWindow parentNativeWindow; */
  82.   NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow) = 0;
  83.   NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow) = 0;
  84.  
  85.   /* attribute boolean visibility; */
  86.   NS_IMETHOD GetVisibility(PRBool *aVisibility) = 0;
  87.   NS_IMETHOD SetVisibility(PRBool aVisibility) = 0;
  88.  
  89.   /* attribute boolean enabled; */
  90.   NS_IMETHOD GetEnabled(PRBool *aEnabled) = 0;
  91.   NS_IMETHOD SetEnabled(PRBool aEnabled) = 0;
  92.  
  93.   /** set blurSuppression to true to suppress handling of blur events.
  94.      *  set it false to re-enable them. query it to determine whether
  95.      *  blur events are suppressed. The implementation should allow
  96.      *  for blur events to be suppressed multiple times.
  97.      */
  98.   /* attribute boolean blurSuppression; */
  99.   NS_IMETHOD GetBlurSuppression(PRBool *aBlurSuppression) = 0;
  100.   NS_IMETHOD SetBlurSuppression(PRBool aBlurSuppression) = 0;
  101.  
  102.   /* [noscript] readonly attribute nsIWidget mainWidget; */
  103.   NS_IMETHOD GetMainWidget(nsIWidget * *aMainWidget) = 0;
  104.  
  105.   /**
  106.     * Give the window focus.
  107.     */
  108.   /* void setFocus (); */
  109.   NS_IMETHOD SetFocus(void) = 0;
  110.  
  111.   /* attribute wstring title; */
  112.   NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0;
  113.   NS_IMETHOD SetTitle(const PRUnichar * aTitle) = 0;
  114.  
  115. };
  116.  
  117. /* Use this macro when declaring classes that implement this interface. */
  118. #define NS_DECL_NSIBASEWINDOW \
  119.   NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy); \
  120.   NS_IMETHOD Create(void); \
  121.   NS_IMETHOD Destroy(void); \
  122.   NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y); \
  123.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y); \
  124.   NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint); \
  125.   NS_IMETHOD GetSize(PRInt32 *cx, PRInt32 *cy); \
  126.   NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint); \
  127.   NS_IMETHOD GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy); \
  128.   NS_IMETHOD Repaint(PRBool force); \
  129.   NS_IMETHOD GetParentWidget(nsIWidget * *aParentWidget); \
  130.   NS_IMETHOD SetParentWidget(nsIWidget * aParentWidget); \
  131.   NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow); \
  132.   NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow); \
  133.   NS_IMETHOD GetVisibility(PRBool *aVisibility); \
  134.   NS_IMETHOD SetVisibility(PRBool aVisibility); \
  135.   NS_IMETHOD GetEnabled(PRBool *aEnabled); \
  136.   NS_IMETHOD SetEnabled(PRBool aEnabled); \
  137.   NS_IMETHOD GetBlurSuppression(PRBool *aBlurSuppression); \
  138.   NS_IMETHOD SetBlurSuppression(PRBool aBlurSuppression); \
  139.   NS_IMETHOD GetMainWidget(nsIWidget * *aMainWidget); \
  140.   NS_IMETHOD SetFocus(void); \
  141.   NS_IMETHOD GetTitle(PRUnichar * *aTitle); \
  142.   NS_IMETHOD SetTitle(const PRUnichar * aTitle); 
  143.  
  144. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  145. #define NS_FORWARD_NSIBASEWINDOW(_to) \
  146.   NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) { return _to InitWindow(parentNativeWindow, parentWidget, x, y, cx, cy); } \
  147.   NS_IMETHOD Create(void) { return _to Create(); } \
  148.   NS_IMETHOD Destroy(void) { return _to Destroy(); } \
  149.   NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y) { return _to SetPosition(x, y); } \
  150.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y) { return _to GetPosition(x, y); } \
  151.   NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint) { return _to SetSize(cx, cy, fRepaint); } \
  152.   NS_IMETHOD GetSize(PRInt32 *cx, PRInt32 *cy) { return _to GetSize(cx, cy); } \
  153.   NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint) { return _to SetPositionAndSize(x, y, cx, cy, fRepaint); } \
  154.   NS_IMETHOD GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) { return _to GetPositionAndSize(x, y, cx, cy); } \
  155.   NS_IMETHOD Repaint(PRBool force) { return _to Repaint(force); } \
  156.   NS_IMETHOD GetParentWidget(nsIWidget * *aParentWidget) { return _to GetParentWidget(aParentWidget); } \
  157.   NS_IMETHOD SetParentWidget(nsIWidget * aParentWidget) { return _to SetParentWidget(aParentWidget); } \
  158.   NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow) { return _to GetParentNativeWindow(aParentNativeWindow); } \
  159.   NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow) { return _to SetParentNativeWindow(aParentNativeWindow); } \
  160.   NS_IMETHOD GetVisibility(PRBool *aVisibility) { return _to GetVisibility(aVisibility); } \
  161.   NS_IMETHOD SetVisibility(PRBool aVisibility) { return _to SetVisibility(aVisibility); } \
  162.   NS_IMETHOD GetEnabled(PRBool *aEnabled) { return _to GetEnabled(aEnabled); } \
  163.   NS_IMETHOD SetEnabled(PRBool aEnabled) { return _to SetEnabled(aEnabled); } \
  164.   NS_IMETHOD GetBlurSuppression(PRBool *aBlurSuppression) { return _to GetBlurSuppression(aBlurSuppression); } \
  165.   NS_IMETHOD SetBlurSuppression(PRBool aBlurSuppression) { return _to SetBlurSuppression(aBlurSuppression); } \
  166.   NS_IMETHOD GetMainWidget(nsIWidget * *aMainWidget) { return _to GetMainWidget(aMainWidget); } \
  167.   NS_IMETHOD SetFocus(void) { return _to SetFocus(); } \
  168.   NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \
  169.   NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return _to SetTitle(aTitle); } 
  170.  
  171. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  172. #define NS_FORWARD_SAFE_NSIBASEWINDOW(_to) \
  173.   NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWindow(parentNativeWindow, parentWidget, x, y, cx, cy); } \
  174.   NS_IMETHOD Create(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Create(); } \
  175.   NS_IMETHOD Destroy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Destroy(); } \
  176.   NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPosition(x, y); } \
  177.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(x, y); } \
  178.   NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(cx, cy, fRepaint); } \
  179.   NS_IMETHOD GetSize(PRInt32 *cx, PRInt32 *cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(cx, cy); } \
  180.   NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPositionAndSize(x, y, cx, cy, fRepaint); } \
  181.   NS_IMETHOD GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPositionAndSize(x, y, cx, cy); } \
  182.   NS_IMETHOD Repaint(PRBool force) { return !_to ? NS_ERROR_NULL_POINTER : _to->Repaint(force); } \
  183.   NS_IMETHOD GetParentWidget(nsIWidget * *aParentWidget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentWidget(aParentWidget); } \
  184.   NS_IMETHOD SetParentWidget(nsIWidget * aParentWidget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentWidget(aParentWidget); } \
  185.   NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentNativeWindow(aParentNativeWindow); } \
  186.   NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentNativeWindow(aParentNativeWindow); } \
  187.   NS_IMETHOD GetVisibility(PRBool *aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisibility(aVisibility); } \
  188.   NS_IMETHOD SetVisibility(PRBool aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisibility(aVisibility); } \
  189.   NS_IMETHOD GetEnabled(PRBool *aEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabled(aEnabled); } \
  190.   NS_IMETHOD SetEnabled(PRBool aEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnabled(aEnabled); } \
  191.   NS_IMETHOD GetBlurSuppression(PRBool *aBlurSuppression) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlurSuppression(aBlurSuppression); } \
  192.   NS_IMETHOD SetBlurSuppression(PRBool aBlurSuppression) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBlurSuppression(aBlurSuppression); } \
  193.   NS_IMETHOD GetMainWidget(nsIWidget * *aMainWidget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMainWidget(aMainWidget); } \
  194.   NS_IMETHOD SetFocus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocus(); } \
  195.   NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  196.   NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } 
  197.  
  198. #if 0
  199. /* Use the code below as a template for the implementation class for this interface. */
  200.  
  201. /* Header file */
  202. class nsBaseWindow : public nsIBaseWindow
  203. {
  204. public:
  205.   NS_DECL_ISUPPORTS
  206.   NS_DECL_NSIBASEWINDOW
  207.  
  208.   nsBaseWindow();
  209.  
  210. private:
  211.   ~nsBaseWindow();
  212.  
  213. protected:
  214.   /* additional members */
  215. };
  216.  
  217. /* Implementation file */
  218. NS_IMPL_ISUPPORTS1(nsBaseWindow, nsIBaseWindow)
  219.  
  220. nsBaseWindow::nsBaseWindow()
  221. {
  222.   /* member initializers and constructor code */
  223. }
  224.  
  225. nsBaseWindow::~nsBaseWindow()
  226. {
  227.   /* destructor code */
  228. }
  229.  
  230. /* [noscript] void initWindow (in nativeWindow parentNativeWindow, in nsIWidget parentWidget, in long x, in long y, in long cx, in long cy); */
  231. NS_IMETHODIMP nsBaseWindow::InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy)
  232. {
  233.     return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235.  
  236. /* void create (); */
  237. NS_IMETHODIMP nsBaseWindow::Create()
  238. {
  239.     return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241.  
  242. /* void destroy (); */
  243. NS_IMETHODIMP nsBaseWindow::Destroy()
  244. {
  245.     return NS_ERROR_NOT_IMPLEMENTED;
  246. }
  247.  
  248. /* void setPosition (in long x, in long y); */
  249. NS_IMETHODIMP nsBaseWindow::SetPosition(PRInt32 x, PRInt32 y)
  250. {
  251.     return NS_ERROR_NOT_IMPLEMENTED;
  252. }
  253.  
  254. /* void getPosition (out long x, out long y); */
  255. NS_IMETHODIMP nsBaseWindow::GetPosition(PRInt32 *x, PRInt32 *y)
  256. {
  257.     return NS_ERROR_NOT_IMPLEMENTED;
  258. }
  259.  
  260. /* void setSize (in long cx, in long cy, in boolean fRepaint); */
  261. NS_IMETHODIMP nsBaseWindow::SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint)
  262. {
  263.     return NS_ERROR_NOT_IMPLEMENTED;
  264. }
  265.  
  266. /* void getSize (out long cx, out long cy); */
  267. NS_IMETHODIMP nsBaseWindow::GetSize(PRInt32 *cx, PRInt32 *cy)
  268. {
  269.     return NS_ERROR_NOT_IMPLEMENTED;
  270. }
  271.  
  272. /* void setPositionAndSize (in long x, in long y, in long cx, in long cy, in boolean fRepaint); */
  273. NS_IMETHODIMP nsBaseWindow::SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint)
  274. {
  275.     return NS_ERROR_NOT_IMPLEMENTED;
  276. }
  277.  
  278. /* void getPositionAndSize (out long x, out long y, out long cx, out long cy); */
  279. NS_IMETHODIMP nsBaseWindow::GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy)
  280. {
  281.     return NS_ERROR_NOT_IMPLEMENTED;
  282. }
  283.  
  284. /* void repaint (in boolean force); */
  285. NS_IMETHODIMP nsBaseWindow::Repaint(PRBool force)
  286. {
  287.     return NS_ERROR_NOT_IMPLEMENTED;
  288. }
  289.  
  290. /* [noscript] attribute nsIWidget parentWidget; */
  291. NS_IMETHODIMP nsBaseWindow::GetParentWidget(nsIWidget * *aParentWidget)
  292. {
  293.     return NS_ERROR_NOT_IMPLEMENTED;
  294. }
  295. NS_IMETHODIMP nsBaseWindow::SetParentWidget(nsIWidget * aParentWidget)
  296. {
  297.     return NS_ERROR_NOT_IMPLEMENTED;
  298. }
  299.  
  300. /* attribute nativeWindow parentNativeWindow; */
  301. NS_IMETHODIMP nsBaseWindow::GetParentNativeWindow(nativeWindow *aParentNativeWindow)
  302. {
  303.     return NS_ERROR_NOT_IMPLEMENTED;
  304. }
  305. NS_IMETHODIMP nsBaseWindow::SetParentNativeWindow(nativeWindow aParentNativeWindow)
  306. {
  307.     return NS_ERROR_NOT_IMPLEMENTED;
  308. }
  309.  
  310. /* attribute boolean visibility; */
  311. NS_IMETHODIMP nsBaseWindow::GetVisibility(PRBool *aVisibility)
  312. {
  313.     return NS_ERROR_NOT_IMPLEMENTED;
  314. }
  315. NS_IMETHODIMP nsBaseWindow::SetVisibility(PRBool aVisibility)
  316. {
  317.     return NS_ERROR_NOT_IMPLEMENTED;
  318. }
  319.  
  320. /* attribute boolean enabled; */
  321. NS_IMETHODIMP nsBaseWindow::GetEnabled(PRBool *aEnabled)
  322. {
  323.     return NS_ERROR_NOT_IMPLEMENTED;
  324. }
  325. NS_IMETHODIMP nsBaseWindow::SetEnabled(PRBool aEnabled)
  326. {
  327.     return NS_ERROR_NOT_IMPLEMENTED;
  328. }
  329.  
  330. /* attribute boolean blurSuppression; */
  331. NS_IMETHODIMP nsBaseWindow::GetBlurSuppression(PRBool *aBlurSuppression)
  332. {
  333.     return NS_ERROR_NOT_IMPLEMENTED;
  334. }
  335. NS_IMETHODIMP nsBaseWindow::SetBlurSuppression(PRBool aBlurSuppression)
  336. {
  337.     return NS_ERROR_NOT_IMPLEMENTED;
  338. }
  339.  
  340. /* [noscript] readonly attribute nsIWidget mainWidget; */
  341. NS_IMETHODIMP nsBaseWindow::GetMainWidget(nsIWidget * *aMainWidget)
  342. {
  343.     return NS_ERROR_NOT_IMPLEMENTED;
  344. }
  345.  
  346. /* void setFocus (); */
  347. NS_IMETHODIMP nsBaseWindow::SetFocus()
  348. {
  349.     return NS_ERROR_NOT_IMPLEMENTED;
  350. }
  351.  
  352. /* attribute wstring title; */
  353. NS_IMETHODIMP nsBaseWindow::GetTitle(PRUnichar * *aTitle)
  354. {
  355.     return NS_ERROR_NOT_IMPLEMENTED;
  356. }
  357. NS_IMETHODIMP nsBaseWindow::SetTitle(const PRUnichar * aTitle)
  358. {
  359.     return NS_ERROR_NOT_IMPLEMENTED;
  360. }
  361.  
  362. /* End of implementation class template. */
  363. #endif
  364.  
  365.  
  366. #endif /* __gen_nsIBaseWindow_h__ */
  367.